completion--replace: Fix completion cycling
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 02:57:10 +0000 (05:57 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 16:02:36 +0000 (19:02 +0300)
commit2c759b9ce620311df97f43b791ba27b1302171c4
tree484d067f9a65881f43771365f8b43c72bd0dae46
parent6e8bee27a5cb9915c5db0f8756c8a903e4be1cec
completion--replace: Fix completion cycling

* lisp/minibuffer.el (completion--replace):
Don't "insert before markers" after all because in some cases
(https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg00701.html)
- like cycling - BEG can be denoted by a marker as well.
(minibuffer-completion-help): Make FIELD-END simply a fixnum.  And
adjust its value manually inside the local
completion-list-insert-choice-function (bug#48356).
lisp/minibuffer.el